package com.example.springframeworklearning.propertyeditor;

import com.example.springframeworklearning.domain.OrderItem;

import java.beans.PropertyEditorSupport;

/**
 * @author luo
 * @since 2022/9/19 15:14
 */
public class OrderItemListPropertyEditor extends PropertyEditorSupport {


    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        OrderItem orderItem = new OrderItem();
        orderItem.setName(text);
        super.setValue(orderItem);
    }
}
